#include <iostream>
#include <unistd.h>

#include "Thread.hpp"

void Print()
{
  while (true)
  {
    std::cout << "我是一个封装的线程" << std::endl;
    sleep(1);
  }
}
int main()
{
  Thread t(Print);

  t.Run();

  std::cout << "isRuning: " << t.getIsRuning() << std::endl;
  std::cout << "StartTimestamp: " << t.getStartTimestamp() << std::endl;
  std::cout << "threadname: " << t.getThreadName() << std::endl;

  t.Join();
  return 0;
}